using System;
using System.Collections.Generic;
using System.Text;
using Mpi.Common.Collections;
namespace Xeml.Document
{
    public class IndividualsPoolCollection : ObservableIdCollectionBase<IndividualsPool,string>
    {
        public StoryBase Story { get; private set; }

        public IndividualsPoolCollection(StoryBase owner)
        {
            Story = owner;
        }

        protected override string GetIdentifiere(IndividualsPool item)
        {
            return item.FqName;
        }

        protected override void SetOwner(IndividualsPool item)
        {
            item.Collection = this;
        }

        protected override void RemoveOwner(IndividualsPool item)
        {
            item.Collection = null;
        }
    }
}
